<!DOCTYPE html>
<html>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width,initial-scale=1.0'>
    <meta http-equiv='X-UA-Compatible' content='ie=edge'>
    <title>Document</title>
    <style>
        .active {
            color: red
        }
    </style>
</head>

<body>
    <div id='app'>
        <!-- v-bind:class
            1. 对象语法
            2. 数组语法
        -->
        <!-- <p v-bind:class="{active:a,left:b}">内容</p> -->
        <!-- <p v-bind:class="[x,y]">内容</p> -->

        <!-- v-bind简写  :属性名=值 -->
        <!-- <p v-bind:class="[x,y]">内容</p> -->
        <p :class="[x,y]">内容</p>
        <!-- <p v-for="item in items" v-bind:key="item.id"></p> -->


    </div>
    <script src='./vue.js'></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                x: 'active',
                y: 'right',
                b: true,
                a: true
            },
            methods: {

            }
        });
    </script>
</body>

</html>